package com.smasher.demo

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {

    companion object {
        const val TAG = "Main"
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        val position = getPosition()
        Log.d(TAG, "result:$position ")
    }

    private fun getPosition(): Int {
        for (position in 0..99 step 10) {
            Log.d(TAG, "progress: $position")
            if (position == 30) {
                return position
            }
        }
        return 0
    }
}